package com.mmall.service;

import com.github.pagehelper.PageInfo;
import com.mmall.common.ServerResponse;
import com.mmall.pojo.Product;
import com.mmall.vo.ProductDetailVo;
import org.springframework.web.multipart.MultipartFile;

public interface IProductService {
    ServerResponse insterAndupdateAndProduct(Product product);

    ServerResponse updateStatus(Integer productId, Integer status);

    ServerResponse getDetail(Integer productId);

    ServerResponse<PageInfo> getList(Integer pageName, Integer pageSize);

    ServerResponse searchProduct(String productName, Integer productId, Integer pageName, Integer pageSize);


    ServerResponse<ProductDetailVo> Detail(Integer productId);

    ServerResponse<PageInfo> List(String orderBy,Integer pageName, Integer pageSize, String productName, Integer productId);
}
